﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _07_匿名委托
{
    public delegate int OtherDel(int intParam);

    internal class Program
    {
        static void Main(string[] args)
        {
            OtherDel otherDel = delegate (int intParam)
            {
                return intParam + 1;
            };

            //调用方法
            Console.WriteLine(otherDel.Invoke(1));

            Console.Read();

        }
    }
}
